package com.fourth_groups.shopping121store.ui.person.view;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;

import com.fourth_groups.shopping121store.R;

public class PhoneActivity extends AppCompatActivity {

    private EditText edit_phone;
    private EditText edit_phone1;
    private Button btn_yz;
    private Button phone_bd;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        supportRequestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.activity_phone);
        initview();
    }

    private void initview() {
        
        edit_phone = (EditText) findViewById(R.id.edit_phone);
        edit_phone1 = (EditText) findViewById(R.id.edit_phone1);
        btn_yz = (Button) findViewById(R.id.sms_btn);
        phone_bd = (Button) findViewById(R.id.phone_bd);
       btn_yz.setOnClickListener(new View.OnClickListener() {
           @Override
           public void onClick(View v) {
               Toast.makeText(PhoneActivity.this, "验证码发送成功", Toast.LENGTH_SHORT).show();
           }
       });
        phone_bd.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                if (edit_phone.getText().toString()!=null&&edit_phone1.getText().toString()!=null){
                    Toast.makeText(PhoneActivity.this, "用户绑定成功", Toast.LENGTH_SHORT).show();
                }
            }
        });

       

    }
}
